package homewoek12月19号.homwwork.h7;

import java.util.HashMap;
import java.util.Map;

public class Demo1 {
    public static void main(String[] args) throws Exception{
        demo01();
    }

    public static void demo01() throws Exception {
        Map<String, Object[]> map = new HashMap<>();
        map.put("bookname",new Object[]{"蛙"});
        map.put("author",new Object[]{"莫言"});
        map.put("price",new Object[]{39.9});
        map.put("publishDate",new Object[]{"2012-03-05"});
        Book book = new Book();
        MyBeanUtils.populate(book.getClass(),map);
    }
}
